import addLabelFunc from '@/utils/enumUtils';
import type { ReactNode } from 'react';
interface RootObject {
  status: Status & ENUM.EnumFunction<Status>;
}

interface Status {
  faiWeather: FaiWeather;
  cloudy: FaiWeather;
  rainy: FaiWeather;
  snow: FaiWeather;
  thunder: FaiWeather;
  overcastSky: FaiWeather;
}

interface FaiWeather {
  name: string;
  label: string;
  key: string;
  render?: ReactNode;
}
const weather: RootObject = {
  status: {
    faiWeather: {
      name: '晴天',
      label: '多云',
      key: 'faiWeather',
    },
    cloudy: {
      name: '多云',
      label: '多云',
      key: 'cloudy',
    },
    rainy: {
      name: '有雨',
      label: '有雨',
      key: 'rainy',
    },
    snow: {
      name: '雪天',
      label: '雪天',
      key: 'faiWeather',
    },
    thunder: {
      name: '打雷',
      label: '打雷',
      key: 'thunder',
    },
    overcastSky: {
      name: '阴天',
      label: '阴天',
      key: 'overcastSky',
    },
  },
};
addLabelFunc(weather);
export default weather;
